import instance from "./axios";
import instance2 from "./newAxios";
export const getCateList = data => {
  return instance({
    method: 'post',
    url: '/api/category/list',
    data
  })
} 
export const getProCateList = data => {
  return instance({
    method: 'post',
    url: '/api/category/problemList',
    data
  })
}
export const getProblemList = data => {
  return instance({
    method: 'post',
    url: '/api/problem/list',
    data
  })
}
export const getAboutInfo = () => {
  return instance({
    method: 'post',
    url: '/api/about/aboutus'
  })
}
export const getNewsDetail = data => {
  return instance({
    method: 'post',
    url: '/api/problem/detail',
    data
  })
}
export const getVideoCate = (data) => {
  return instance({
    method: 'post',
    url: '/api/video/list',
    data
  })
}
export const getVideoList = data => {
  return instance({
    method: 'post',
    url: '/api/video/videoList',
    data
  })
}
export const getVideoDetail = data => {
  return instance({
    method: 'post',
    url: '/api/video/detail',
    data
  })
}
export const getOptions = data => {
  return instance2({
    method: 'post',
    url: '/index.php/price/city-data',
    data
  })
}
export const getPriceData = data => {
  return instance2({
    method: 'post',
    url: '/index.php/price/price',
    data
  })
}
export const getCityList = data => {
  return instance2({
    method: 'post',
    url: '/index.php/standard/city',
    data
  })
}
export const getFileList = data => {
  return instance2({
    method: 'post',
    url: '/index.php/standard/list',
    data
  })
}
export const getFileDetail = data => {
  return instance2({
    method: 'post',
    url: '/index.php/standard/detail',
    data
  })
}
export const getMaterList = data => {
  return instance({
    method: 'post',
    url: '/api/material/list',
    data
  })
}
export const getMaterDetail = data => {
  return instance({
    method: 'post',
    url: '/api/material/detail',
    data
  })
}